module MC.Money {
	export enum PlayType{
		zhifubao=1
	};
	export class chongzhi {
		public constructor() {
			$('.chongzhibtn').click(() => {
				MC.click(() => { 
					this.genPlay();
				});
			});
		}
		private genPlay() { 
			let val = $('.moneyvalue').val();
			if (val <= 0) {
				MC.msg.show('充值金额不能少于等于0');
				return;
			}
			MC.api('GenchongzhiPayHref',{
				playtype:PlayType.zhifubao,
				value:val
			},(obj:any)=>{
				console.log(obj);
				window.open(obj,'_self');
			});
		}
	}
}